
//
//  WlisThemeItem.swift
//  Swift_missScarlett
//
//  Created by xmg on 16/9/19.
//  Copyright © 2016年 wlis. All rights reserved.
//

import UIKit

import MJExtension
class WlisThemeItem: NSObject {

    // 顶部
    var name: String?
    var passtime: String?
    var profile_image: String?
    var text: String?
    
    // 类型
    var type: Int = 0
    
    // 图片
    // 小图
    var image0: String?
    // 大图
    var image1: String?
    var image2: String?
    var placeholderImage: UIImage?
    
    var width: CGFloat = 0
    var height: CGFloat = 0
    
    // 是否是gif
    var is_gif:Bool = false
    
    // 大图片
    var bigImagePicture:Bool = false
    
    // 声音
    var voicetime: String?
    var voicelength: String?
    
    // 视频
    var videotime: String?
    var playcount: String?
    
    // 最热评论
    var top_cmt: NSArray? {
        willSet{
            if newValue?.count == 0 { return }
            hot_cmt = newValue?.firstObject as! WlisComment
        }
    }
    
    override static func mj_objectClassInArray() -> [NSObject : AnyObject]! {
        return ["top_cmt" : WlisComment.classForCoder()]
    }
    
    var hot_cmt: WlisComment?
    
    // 底部数据
    var cai: Int = 0
    var ding: Int = 0
    var repost: Int = 0
    var comment: Int = 0

}
